<table class="milestones" cellspacing="0" cellpadding="0">
	<tbody>
		<tr>
			<th colspan="7">Due in the next 14 days</th>
		</tr>
			<?php foreach($calendar_data as $week): ?>

			<tr>
				<?php foreach($week as $day => $tasks): ?>
					<?php if(sizeof($tasks) > 0):?>
					<td class="<?php echo $day == date('d') ? 'today' : 'tasks'?>">
						<p class="date">
							<?php echo $day == date('d') ? 'today' : $day?>
						</p>
						
						<?php foreach($tasks as $task):?>
							<p class="milestone">
								<a href="#"><?php echo $task->getName();?></a>
							</p>
						<?php endforeach?>
					</td>
					<?php  else:?>
					<td class="<?php echo $day == date('d') ? 'today' : ''?>">
						<p class="date">
							<?php echo $day == date('d') ? 'today' : $day?>
						</p>
					</td>
					<?php endif?>
				<?php endforeach?>	
			</tr>	
		<?php endforeach?>
	</tbody>
</table>